<?php
/**
 * PatientSignalUpload2 model class file.
 *
 * @package   models
 * @since     1.0
 * @filesource
 */

/**
 * The 2nd form in uploading signal, contains medical information
 * 
 * PatientSignalUpload0 is a Form class. 
 * It is the data structure for keeping form data.
 *
 */
class PatientSignalUpload2 extends CFormModel{

	public $currentMedicationAndDosage;
	public $reportedSideEffects;
	public $pastMedicationHistory;
	public $lastDoseTakenTime;
	public $otherTherapyDescription;
	
	/**
	 * Declares the validation rules.
	 * The rules will be used when requesting validation by call self.validate().
	 * Many class method will call self.validate(), eg: CActiveRecord.save().
	 * @return array validation rules for model attributes.
	 * @see PatientSignal
	 */
	public function rules()
	{
		return array(
			// duplicate the rules of mentioned attributes in PatientSignal
			array('currentMedicationAndDosage, reportedSideEffects, pastMedicationHistory, lastDoseTakenTime, otherTherapyDescription', 'safe'),
		);
	}
}
